/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package uk.ac.bath;

import uk.ac.bath.base.BuilderIF;
import uk.ac.bath.base.Evaluator;
import uk.ac.bath.base.Fitness;
import uk.ac.bath.base.MachineIF;
import uk.ac.bath.domains.IP.IPEvaluator;
import uk.ac.bath.domains.IP.IPSetupIF;
import uk.ac.bath.domains.IP.IPSetupQuadVert;
import uk.ac.bath.machine.neural3.Neural3Builder;

/**
 *
 * @author pjl
 */
public class SimpleMain {

    public static void main(String args[]) {

        // IP specific
        IPSetupIF setup = new IPSetupQuadVert();
        Evaluator eval = new IPEvaluator(setup);

        int nIn = setup.getNIn();
        int nHidden = 8;
        int nOut = setup.getNOut();
        int nConnect = 5;
        BuilderIF b = new Neural3Builder(nIn, nHidden, nOut, nConnect, false);

      

        MachineIF m=b.createRandomMachine();

        eval.setMachine(m);

        Fitness fit;
        while(!(fit=eval.tick()).decided()) {
            System.out.println(eval.getStatus()+fit);
        }
        


    }
}
